package jsen.tool.ddd.adapter.infrastructure.specification.demo.spec.send;

import jsen.tool.ddd.adapter.infrastructure.specification.base.CompositeSpecification;
import jsen.tool.ddd.adapter.infrastructure.specification.base.SpecConfig;
import jsen.tool.ddd.adapter.infrastructure.specification.base.SpecContext;
import jsen.tool.ddd.adapter.infrastructure.specification.demo.Line;

/**
 * @author jsen
 * @date 2021/10/6
 * <p>
 * 名字和别名不能相同
 */
class SendMethodLineSpec extends CompositeSpecification<Line> {

    @Override
    public boolean isSatisfiedBy(SpecContext<Line> t) {
        return t.getData().getStrict().isSatisfiedBy(t);
    }

    @Override
    public SpecConfig getSpecConfig() {
        return SpecConfig.createAny();
    }
}
